package genedit.model.graph;

import java.awt.geom.Point2D;
import java.io.Serializable;

/**
 * Nadklasa svih tačaka potrebnih vezama, uključujući prelomne i konekcione
 * tačke.
 * 
 * @author Nikola
 * @version 1.0 18/12/13
 */
public abstract class Point implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * Pozicija na kojoj se tačka nalazi.
	 */
	protected Point2D position;

	public Point(Point2D position) {
		this.position = position;
	}

	public Point2D getPosition() {
		return position;
	}

	public void setPosition(Point2D newPosition) {
		position = newPosition;
	}

}